.class Lcom/waiqin365/lightapp/view/go;
.super Landroid/widget/BaseAdapter;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/go;->a:Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/go;->a:Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/go;->a:Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4

    if-nez p2, :cond_0

    new-instance v1, Lcom/waiqin365/lightapp/view/gr;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/view/gr;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/go;->a:Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;->getContext()Landroid/content/Context;

    move-result-object v0

    const v2, 0x7f0301c7

    const/4 v3, 0x0

    invoke-static {v0, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v0, 0x7f0c034e

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/view/gr;->a:Landroid/widget/TextView;

    const v0, 0x7f0c0549

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    iput-object v0, v1, Lcom/waiqin365/lightapp/view/gr;->b:Landroid/widget/CheckBox;

    const v0, 0x7f0c09a5

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/view/gr;->c:Landroid/view/View;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    :goto_0
    iget-object v2, v1, Lcom/waiqin365/lightapp/view/gr;->b:Landroid/widget/CheckBox;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/go;->a:Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/b/c;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/b/c;->c:Z

    invoke-virtual {v2, v0}, Landroid/widget/CheckBox;->setChecked(Z)V

    iget-object v0, v1, Lcom/waiqin365/lightapp/view/gr;->b:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, v1, Lcom/waiqin365/lightapp/view/gr;->a:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/view/go;->a:Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0b0037

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    :goto_1
    iget-object v0, v1, Lcom/waiqin365/lightapp/view/gr;->b:Landroid/widget/CheckBox;

    new-instance v2, Lcom/waiqin365/lightapp/view/gp;

    invoke-direct {v2, p0, p1}, Lcom/waiqin365/lightapp/view/gp;-><init>(Lcom/waiqin365/lightapp/view/go;I)V

    invoke-virtual {v0, v2}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/go;->a:Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p1, v0, :cond_2

    iget-object v0, v1, Lcom/waiqin365/lightapp/view/gr;->c:Landroid/view/View;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    :goto_2
    iget-object v1, v1, Lcom/waiqin365/lightapp/view/gr;->a:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/go;->a:Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/b/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/b/c;->b:Ljava/lang/String;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/gr;

    move-object v1, v0

    goto :goto_0

    :cond_1
    iget-object v0, v1, Lcom/waiqin365/lightapp/view/gr;->a:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/view/go;->a:Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/view/PhotoTypeSelectView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0b0036

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_1

    :cond_2
    iget-object v0, v1, Lcom/waiqin365/lightapp/view/gr;->c:Landroid/view/View;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_2
.end method
